/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.monVehicule.coordination.ajouter.vehicule;

import fr.monVehicule.dao.ajouter.ModeleDAO;
import fr.monVehicule.entite.Modele;
import java.util.List;

/**
 *
 * @author David
 */
public class ChercherModelesProcessus {

    private List<Modele> list;
    private Integer idMarque;

    public ChercherModelesProcessus(Integer idMarque) {
        this.idMarque = idMarque;
    }

    public void execute() {
        ModeleDAO dao = new ModeleDAO();
        list = dao.findModelesByMarque(idMarque);
    }

    public List<Modele> getList() {
        return list;
    }
    
    
}
